const fs =require('fs')

require('http')
    .createServer((req,res)=>{
        const flie =fs.readFileSync('./public/index.html')
        res.write('hi')
        res.end(flie)
    }).listen(8080,()=>{
        console.log('loaclhost:8080');
    })